/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.star.modules.sys.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.star.modules.sys.entity.ShQuestion;
import com.star.modules.sys.dao.ShQuestionDao;

/**
 * 答疑Service
 * @author L
 * @version 2018-09-04
 */
@Service
@Transactional(readOnly=true)
public class ShQuestionService extends CrudService<ShQuestionDao, ShQuestion> {
	
	/**
	 * 获取单条数据
	 * @param shQuestion
	 * @return
	 */
	@Override
	public ShQuestion get(ShQuestion shQuestion) {
		return super.get(shQuestion);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param shQuestion
	 * @return
	 */
	@Override
	public Page<ShQuestion> findPage(Page<ShQuestion> page, ShQuestion shQuestion) {
		return super.findPage(page, shQuestion);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param shQuestion
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(ShQuestion shQuestion) {
		super.save(shQuestion);
	}
	
	/**
	 * 更新状态
	 * @param shQuestion
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(ShQuestion shQuestion) {
		super.updateStatus(shQuestion);
	}
	
	/**
	 * 删除数据
	 * @param shQuestion
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(ShQuestion shQuestion) {
		super.delete(shQuestion);
	}
	
}